package com.platform.api.bzproject.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.platform.api.bzproject.model.BzTalent;
import com.platform.api.bzproject.vo.TalentVo;
import org.apache.ibatis.annotations.Param;


import java.util.List;
import java.util.Map;

/**
 * <p>
 * 达人注册表 Mapper 接口
 * </p>
 *
 * @author guoshao
 * @since 2021-10-22
 */
public interface BzTalentMapper extends BaseMapper<BzTalent> {

    String getByWord(@Param("word")String word);

    List<Map<String,Object>> selectLimitBzTalent();

    List<TalentVo> selectBzTalentList(TalentVo talentVo);

    TalentVo selectByWord(TalentVo talentVo);

    List<TalentVo> selectInvitationRecord(Map<String,Object> map);

    List<TalentVo> apprevoList(Map<String,Object> map);

    int updateBySort(BzTalent talent);

    int updateRecommenderWord(@Param("word")String word,@Param("recommenderWord") String recommenderWord);
}
